#ifndef __MOTOR_H
#define __MOTOR_H

#include "PWM.h"
#include "Encoder.h"

// TB6612控制引脚定义
typedef struct {
    GPIO_TypeDef* GPIOx;
    uint16_t IN1_Pin;
    uint16_t IN2_Pin;
} MotorCtrl_t;

void Motor_Init(void);
void Motor_SetPWM(int8_t Motor, float PWM);

#endif
